This reverts commit
70ac2b24c3d400c854d8a9e0937afa076f9dbe7f.
It turns out the correct fix is to make pango_layout_get_text() not
return NULL. This has been done, so we can drop this patch.
I won't bump the Pango dependency in configure.ac for this as I don't
consider the crash critical enough.
text = pango_layout_get_text (layout);
- if (text == NULL || text[0] == 0)
+ if (text[0] == 0)
{
*start_offset = 0;
*end_offset = 0;
text = pango_layout_get_text (layout);
- if (text == NULL || text[0] == 0)
+ if (text[0] == 0)
{
*start_offset = 0;
*end_offset = 0;
text = pango_layout_get_text (layout);
- if (text == NULL || text[0] == 0)
+ if (text[0] == 0)
{
*start_offset = 0;
*end_offset = 0;